package com.iflytek.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iflytek.common.annotation.Excel;
import com.iflytek.common.core.domain.BaseEntity;

/**
 * 试卷答案设置对象 tb_paper_info
 *
 * @author KK
 * @date 2024-07-10
 */
public class PaperInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 学生id */
    @Excel(name = "学生id")
    private Long userId;

    /** 答案所属试卷id */
    @Excel(name = "答案所属试卷id")
    private Long examId;

    /** 答案所属题库id */
    @Excel(name = "答案所属题库id")
    private Long quBankId;

    /** 试题的id */
    @Excel(name = "试题的id")
    private Long quId;

    /** 题目类型（1单选，2多选，3判断，4简答，5计算题） */
    @Excel(name = "题目类型", readConverterExp = "1=单选，2多选，3判断，4简答，5计算题")
    private Integer type;

    /** 提交的答案（阅卷时转换数据类型） */
    @Excel(name = "提交的答案", readConverterExp = "阅=卷时转换数据类型")
    private String content;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setExamId(Long examId)
    {
        this.examId = examId;
    }

    public Long getExamId()
    {
        return examId;
    }
    public void setQuBankId(Long quBankId)
    {
        this.quBankId = quBankId;
    }

    public Long getQuBankId()
    {
        return quBankId;
    }
    public void setQuId(Long quId)
    {
        this.quId = quId;
    }

    public Long getQuId()
    {
        return quId;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("examId", getExamId())
                .append("quBankId", getQuBankId())
                .append("quId", getQuId())
                .append("type", getType())
                .append("content", getContent())
                .append("createTime", getCreateTime())
                .toString();
    }
}
